#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "human.h"

int main(void){
    for(int i = 0; i < HUMAN_CAPACITY; ++i)
        human_pool[i] = (Human) {
            .name = strdup("Steve"), .danger = i % DANGER_COUNT, .prob = 0.0f
        };

    for(int i = 0; i < HUMAN_CAPACITY; ++i)
    {
        printf("Human %d is %s\n", i, danger_as_cstr((human_pool + i)->danger));
        free(human_pool[i].name);
    }
    for(Danger i = 0; i < DANGER_COUNT; ++i)
        printf("Number of %s humans: %ld\n", danger_as_cstr(i), human_danger_num(human_pool, i, HUMAN_CAPACITY));
}
